<%-- 
    Document   : listaClientes
    Created on : Nov 21, 2011, 12:29:22 PM
    Author     : sabidosan
--%>
<%@page import="Negocio.Cliente"%>
<%@page import="java.util.ArrayList"%>
<%ArrayList<Cliente> clientes = (ArrayList<Cliente>) session.getAttribute("listaDeClientes");%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

	<title>Boris y Saky</title>
	<meta name="description" content="">
	<meta name="author" content="">

	<meta name="viewport" content="width=device-width,initial-scale=1">

	<link rel="stylesheet" href="css/style.css"/>
	<link rel="stylesheet" href="css/eggplant/eggplant.css">

	<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>

<div id="container">
	<header>
            <h1>- Clientes -</h1>
	</header>
	<div id="main" role="main">
            <br/><br/>
            <div id="listaClientes">
                <%for(Cliente cl: clientes){%>
                <h3><a href="#"><strong><%=cl.getNombre()%> <%=cl.getApellido()%></strong></a></h3>
                <div class="infoCliente">
                    <form name="formCliente" action="<%=request.getContextPath()%>/ListadoClientes" method="POST" >
                        <strong>Nombre:</strong> <input type="text" name="nombreCliente" value=<%=cl.getNombre()%> disabled="disabled"/>
                        <input class="nombreCHK" type="checkbox" name="nombre"/><br/>
                        <strong>Apellido:</strong> <input type="text" name="apellidoCliente" value=<%=cl.getApellido()%> disabled="disabled"/>
                        <input class="apellidoCHK" type="checkbox" name="apellido"/><br/>
                        <strong>Género:</strong> <select class="selectGenero" name="generoCliente" disabled="disabled">
                            <option value="H" selected="selected">Hombre</option>
                            <option value="M" >Mujer</option>
                        </select>
                        <input class="generoCHK" type="checkbox" name="genero"/><br/>
                        <strong>Nick:</strong> <input type="text" name="nickCliente" value=<%=cl.getNick()%> disabled="disabled"/>
                        <input class="nickCHK" type="checkbox" name="nick"/><br/>
                        <strong>Contraseña:</strong> <input type="password" name="passwordCliente" value=<%=cl.getPassword()%> disabled="disabled"/>
                        <input class="passwordCHK" type="checkbox" name="password"/><br/>
                        <strong>Correo Electrónico:</strong> <input type="text" name="emailCliente" value=<%=cl.getEmail()%> disabled="disabled" style="margin-right: 16px"/><br/><br/>
                        <input type="submit" value="Borrar" name="borrar" style="position: absolute;left: 30px"/>
                        <input type="submit" value="Guardar" name="guardar" />
                        <input type="hidden" name="hiddenEmail" value=<%=cl.getEmail()%> />
                    </form>
                </div>
                <%}%>                        
            </div>      

            <a href="home.jsp"><h3>Volver al menu</h3></a>

	</div><!--main-->
<footer class="footer">
        <table>
            <thead>
                <th>DIRECCIÓN</th>
                <th>TELÉFONO</th>
                <th>CORREO ELECTRÓNICO</th>
            </thead>
            <tbody>
                <tr>
                    <td>Clara del Rey, 11</td>
                    <td>91-519.48.37</td>
                    <td>contacto@borisysaky.com</td>
                </tr>
                <tr>
                    <td>Metro: Cartagena</td>
                </tr>
                <tr>
                    <td>Autobús: 146 y C1</td>
                </tr>
            </tbody>
        </table>
</footer>
</div> <!--! end of #container -->

<script src="js/libs/jquery-1.6.2.min.js"></script>
<script src="js/libs/jquery-ui-1.8.16.custom.min.js"></script>

<!-- scripts concatenated and minified via ant build script-->
<script src="js/plugins/timepicker.js"></script>
<script src="js/plugins/selectmenu.js"></script>
<script src="js/script.js"></script>
<!-- end scripts-->

<!--[if lt IE 7 ]>
	<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.2/CFInstall.min.js"></script>
	<script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})</script>
<![endif]-->

</body>
</html>